package com.absurdzoo.wintermelon;

import com.absurdzoo.tan.Tyrannosaurus;
import com.absurdzoo.YmY.Pterosauria;
import com.absurdzoo.sweetpotato.Stegosaurus;
import com.absurdzoo.peng.Cedarosaurus;
import com.absurdzoo.sonder.ichthyosaur;

import java.util.Scanner;

public class absurdzoo {
    public static void main(String [] args) {
        String[] namesList = {"tyrannosaurus暴龙","pterosauria翼龙","stegosaurus剑龙","cedarosaurus雪松龙","ichthyosaur鱼龙"};
        for(int i = 0;i < namesList.length;i++) {
            System.out.println(i + 1 + "." + namesList[i]);
        }
        Scanner inputOption = new Scanner(System.in);
        String option = inputOption.nextLine();
            switch (option) {
                case "tyrannosaurus暴龙":
                    Tyrannosaurus bl = new Tyrannosaurus();
                    bl.setId("001");
                    bl.setName("taro");
                    bl.setColor("white and gold");
                    bl.setShape("biggest");
                    bl.setSound("ao ao");
                    System.out.println(bl);
                    break;
                case "pterosauria翼龙":
                    Pterosauria yl = new Pterosauria();
                    yl.setId("002");
                    yl.setName("Fire");
                    yl.setColor("red");
                    yl.setBloodvolume("max");
                    yl.setSpeed("fastest");
                    System.out.println(yl);
                    break;
                case "stegosaurus剑龙":
                    Stegosaurus jl = new Stegosaurus();
                    jl.setId("003");
                    jl.setName("Karina");
                    jl.setColor("silver and purple");
                    jl.setappearance("the silver body has purple horns");
                    jl.setSound("Connor‘s voice");
                    System.out.println(jl);
                    break;
                case "cedarosaurus雪松龙":
                    Cedarosaurus xsl = new Cedarosaurus();
                    xsl.setId("004");
                    xsl.setName("Winter");
                    xsl.setColor("white");
                    xsl.setHeight("tallest");
                    xsl.setWeight("lightest");
                    System.out.println(xsl);
                    break;
                case "ichthyosaur鱼龙":
                    ichthyosaur water;
                    water = new ichthyosaur();
                    water.setId("005");
                    water.setName("Water");
                    water.setColor("silver");
                    water.setLength("200cm");
                    water.setHobby("like to observe in the sea");
                    System.out.println(water);
                    break;
                default:
                    System.out.println("Error！");
                    break;
            }

    }
}
